/////////////////////////////////////////////////////////////////////////////
//Written by Liu Zhengxi
//May 5,2003
//Compiles with Visual C++ 6.0 for Windows 98 and probably Windows 2000 
// too.
/////////////////////////////////////////////////////////////////////////////
#ifndef _SPLASH
#define _SPLASH
#include <atlbase.h>
#include <afxpriv2.h>

// Splash.h : header file
//

/////////////////////////////////////////////////////////////////////////////
//   Splash Screen class
#pragma once


///////////////////////////////////////////////////////////////////
//
//declare CSplashWnd
//
class CSplashWnd : public CWnd
{
// Construction
public:
	CSplashWnd(UINT nIDRes);

// Operations
public:
	BOOL ShowSplash();
	BOOL PreTranslateAppMessage(MSG* pMsg);   
	void ShowText(LPCTSTR lpStrz);
	void CloseSplash();
	CBitmap m_bitmap;
	CString m_strVersion;
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CSplashWnd)
	public:
	virtual BOOL DestroyWindow();
	//}}AFX_VIRTUAL

// Implementation
public:
	CString GetVersion();
	~CSplashWnd();
	virtual void PostNcDestroy();

private:
	BOOL Create(CWnd* pParentWnd = NULL);

// Generated message map functions
private:
	//{{AFX_MSG(CSplashWnd)
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnPaint();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	int height;//the height of the displayed picture
	int width;//the width of the displayed picture
   BOOL fileIsValid;
};

#endif
